# menu_functions.py

def say_hello():
    print("你好，欢迎使用菜单程序！")

def show_menu():
    print("\n====== 主菜单 ======")
    print("1. 打招呼")
    print("2. 退出程序")

def handle_choice(choice):
    if choice == "1":
        say_hello()
    elif choice == "2":
        print("已退出程序。")
        return False
    else:
        print("无效选项，请重新输入。")
    return True
